package Radar;


import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.image.BufferedImage;

import javax.swing.JApplet;

import syncmaster.BeatModelInterface;

public class Radar extends JApplet{ 
	  private DrawA dA; 
	  public BeatModelInterface _model;
	  
	  public Radar(BeatModelInterface model){
		  _model = model;
	  }
	  
	  public void init(){
		  BufferedImage img = new BufferedImage(600, 330,BufferedImage.TYPE_INT_RGB);
	      dA = new DrawA(img,_model); 
	      setLayout(new BorderLayout());
	      setSize(new Dimension(600, 330));
	      add(dA, BorderLayout.CENTER);
	  }
	  
	  public int setRadarBPM(int bpm){
		  return bpm;
	  }
}